import require from '../utils/require'

export function refreshLastRead(id: number, userId: number, msgId: string) {
  return require.post(
    '/cache/refreshLastRead',
    JSON.stringify({
      id: id,
      userId: userId,
      msgId: msgId
    })
  )
}

export function getUserFriendApplyRecord(userId: number) {
  return require.get('/cache/getUserFriendApplyRecord', { userId })
}

export function refreshFriendApply(userId: number) {
  return require.post(
    '/cache/refreshFriendApply',
    JSON.stringify({
      userId: userId
    })
  )
}
